/*
 * activityview.cpp
 *
 *  Created on: Jul 22, 2010
 *      Author: nintang
 */

#include "activityview.h"

activityview::activityview(QWidget *parent)
    : QWidget(parent)
{
	//setWindowFlags(Qt::WindowSoftkeysVisibleHint);
	QLabel *labelActivityView=new QLabel(this);
	labelActivityView->setGeometry(QRect(0,0, 360, 54));
	labelActivityView->setStyleSheet("background-image: url(:/images/37.png);");	
	QWidget *widget=new QWidget(this);
	widget->setGeometry(QRect(0,54, 360, 526));
	widget->setStyleSheet("background-color:white; color:black;font:bold 18px;");
	QWidget *widget2=new QWidget(widget);
	widget2->setStyleSheet("background-image:url(:/images/35.png);");
	widget2->setGeometry(QRect(250,20, 98, 55));
	QLabel *labelName=new QLabel(QApplication::translate("activityview", "\345\220\215\347\247\260\357\274\232", 0, QApplication::UnicodeUTF8),widget);
	labelName->setGeometry(QRect(20,20, 60, 30));
	QLabel *labelTime=new QLabel(QApplication::translate("activityview", "\346\227\266\351\227\264\357\274\232", 0, QApplication::UnicodeUTF8),widget);
	labelTime->setGeometry(QRect(20,60, 60, 30));
	QLabel *labelPlace=new QLabel(QApplication::translate("activityview", "\345\234\260\347\202\271\357\274\232", 0, QApplication::UnicodeUTF8),widget);
	labelPlace->setGeometry(QRect(20,100, 60, 30));
	QLabel *labelSponsor=new QLabel(QApplication::translate("activityview", "\345\217\221\350\265\267\344\272\272\357\274\232", 0, QApplication::UnicodeUTF8),widget);
	labelSponsor->setGeometry(QRect(20,390, 80, 30));
	QLabel *labelNumber=new QLabel(QApplication::translate("activityview", "56\344\272\272", 0, QApplication::UnicodeUTF8),widget2);
	labelNumber->setGeometry(QRect(30,5, 60, 25));
	labelNumber->setStyleSheet("background:transparent;font:bold 18px;color:black;");
	QLabel *labelState=new QLabel(QApplication::translate("activityview", "\346\255\243\345\234\250\350\277\233\350\241\214", 0, QApplication::UnicodeUTF8),widget2);
	labelState->setGeometry(QRect(13,30, 80, 25));
	labelState->setStyleSheet("background:transparent;font:bold 18px;color:black;");
	QLineEdit *lineEditName = new QLineEdit(widget);
	lineEditName->setGeometry(QRect(65, 20, 170, 30));
	lineEditName->setReadOnly(true);
	lineEditName->setMouseTracking(false);
	lineEditName->setText("abcdfgggggggggggggggll");
	lineEditName->setStyleSheet("selection-background-color: transparent; selection-color:black; ");
	QLabel *labelContent=new QLabel(QApplication::translate("activityview", "\345\206\205\345\256\271\357\274\232", 0, QApplication::UnicodeUTF8),widget);
	labelContent->setGeometry(QRect(20,140, 60, 30));	
	QTextEdit *textEdit = new QTextEdit(widget);
    textEdit->setGeometry(QRect(20, 175, 320, 200));
    textEdit->setFrameShadow(QFrame::Plain);
    textEdit->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
    textEdit->setMouseTracking(false);
    textEdit->setReadOnly(true);
    textEdit->setText("aaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbccccccccccd");
    textEdit->setStyleSheet("selection-background-color: transparent; selection-color:black; ");
	QPushButton *pushButton1=new QPushButton(widget);
	pushButton1->setGeometry(QRect(15, 450, 209, 47));	
	pushButton1->setStyleSheet("border-image:url(:/images/39.png);border-radius:10px; border:0px;");
	QPushButton *pushButton2=new QPushButton(widget);
	pushButton2->setGeometry(QRect(245,450, 102, 48));	
	pushButton2->setStyleSheet("border-image:url(:/images/38.png);border-radius:10px; border:0px;");
	QPushButton *pushButtonRight=new QPushButton(this);
	pushButtonRight->setGeometry(QRect(0, 580, 180, 60));	
	pushButtonRight->setStyleSheet("border-image:url(:/images/56.png);border:0px;");
	QPushButton *pushButtonLeft=new QPushButton(this);
	pushButtonLeft->setGeometry(QRect(180, 580, 180, 60));	
	pushButtonLeft->setStyleSheet("border-image:url(:/images/57.png);border:0px;");
	//back = new QAction(tr("Back"), this);
	//back->setSoftKeyRole(QAction::NegativeSoftKey);
	//back->setIcon(QIcon(QPixmap(":/images/57.png")));
	connect(pushButtonLeft, SIGNAL(clicked()), this, SLOT(backtoactivityall()));
	//addAction(back);
}
activityview::~activityview()
{

}
void activityview::backtoactivityall()
{
    activityall *w=new activityall();
    w->showFullScreen(); 
    this->~activityview();
}
